<template>
  <div id="list">
    <div class="item flex-start" @click="gotobuy">
      <van-icon name="logistics" color="red" />
      <div class="info">购买账单</div>
    </div>

    <div class="item flex-start" @click="gotocart">
      <van-icon name="shopping-cart-o" color="red"/>
      <div class="info">购物车</div>
    </div>


  </div>
</template>

<script setup>
import { reactive } from 'vue'
import { useRouter, useRoute } from 'vue-router'
const route = useRoute()
const router = useRouter()

let data = reactive({

})

let gotocart=()=>{
  router.replace('/cart')
}
let gotobuy=()=>{
  router.replace('/buygoodscart')
}


</script>

<style scoped>
#list {
  background-color: #fff;
  font-size: 15px;
  color: #333;
}

#list .item {
  height: 44px;
  line-height: 44px;
  margin-left: .5667rem;
  position: relative;
}

.icon svg {
  width: 18px;
  height: 18px;
}

.item .icon {
  margin-top: 10px;
  position: absolute;
  left: 16px;
  top: -7px;
}

.item .info {
  margin-left: 2px;
  border-bottom: 1px solid rgba(100, 100, 100, .1);
  padding-left: 5px;
}

.item:last-of-type .info {
  border-bottom: none;
}
</style>
